var echarts = require('echarts');
import "echarts-gl";
module.exports = function(el) {
	var myChart = echarts.init(document.getElementById('main'));
var option = {
     backgroundColor: '#000',
	    globe: {
	        baseTexture: require('./image/earth.jpg'),
	        heightTexture: require('./image/bathymetry_bw_composite_4k.jpg'),
	
	        displacementScale: 0.1,
	
	        shading: 'color',
	
	        environment: require('./image/starfield.jpg'),
	
	        light: {
	            ambient: {
	                intensity: 0.1
	            },
	            main: {
	                intensity: 1.5
	            }
	        },
	
//	        layers: [{
//	            type: 'blend',
//	            blendTo: 'emission',
//	            texture: require('./image/night.jpg')
//	        }, {
//	            type: 'overlay',
//	            texture: require('./image/clouds.png'),
//	            shading: 'lambert',
//	            distance: 10
//	        }]
	    },
	    series: []
};
	myChart.setOption(option)
}